package cn.edu.ysu.zry.test;

import cn.hutool.json.JSONObject;

/**
 * @program: XieyiBlockChainOS
 * @description: d
 * @author: Ruiyuan Zhang
 * @create: 2020-04-20 20:13
 */
public class A {
    public int a;
    public B b;

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }

    public static void main(String[] args) {
        A aa=new A();
        aa.setA(333);
        B bb=new B();
        bb.setB(555);
        aa.setB(bb);
        JSONObject jsonObject2 = new JSONObject(aa);
        System.out.println(jsonObject2);
    }
}
